-
Notifications
You must be signed in to change notification settings - Fork 830
Reduce allocations in some Array.Parallel funcs
#17505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce allocations in some Array.Parallel funcs
#17505
Conversation
|
|
Hmm, a3a50c0 reduces allocations significantly, but while it is faster in many scenarios, it is slower in others, depending on the size of the array and the predicate. I may take that change out, unless we know which scenarios we'd prefer to optimize for. |
5e682c8 to
c8e6b2e
Compare
Removed that for now. |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
psfinaki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff, thank you!
KevinRansom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, however it needs the release notes updated.
Description
Followup to #14827.
'T optionallocations inArray.Parallel.tryFindIndex,Array.Parallel.tryFind, andArray.Parallel.tryPick.Checklist